\hypertarget{class_q_qt_server_protocol}{}\section{Q\+Qt\+Server\+Protocol Class Reference}
\label{class_q_qt_server_protocol}\index{Q\+Qt\+Server\+Protocol@{Q\+Qt\+Server\+Protocol}}


The \mbox{\hyperlink{class_q_qt_server_protocol}{Q\+Qt\+Server\+Protocol}} class 这是我定义的服务器和客户端的协议 在这里我实现服务器要干的事情。 具体的：这是我按照服务器和客户端的通信协议，实现的服务器端通信功能。  




{\ttfamily \#include $<$qqtserverprotocolmanager.\+h$>$}

Inheritance diagram for Q\+Qt\+Server\+Protocol\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{class_q_qt_server_protocol}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_qt_server_protocol_af60a54fa1e575ae9141dbe252a8f16be}\label{class_q_qt_server_protocol_af60a54fa1e575ae9141dbe252a8f16be}} 
{\bfseries Q\+Qt\+Server\+Protocol} (Q\+Object $\ast$parent=nullptr)
\item 
\mbox{\Hypertarget{class_q_qt_server_protocol_aecc9da1eb60fb9fed7988b31cd77276b}\label{class_q_qt_server_protocol_aecc9da1eb60fb9fed7988b31cd77276b}} 
void {\bfseries recv\+A1\+Command} (const \mbox{\hyperlink{class_q_qt_server_message}{Q\+Qt\+Server\+Message}} \&msg)
\item 
\mbox{\Hypertarget{class_q_qt_server_protocol_a115f73ff05048748e603dc7592437e25}\label{class_q_qt_server_protocol_a115f73ff05048748e603dc7592437e25}} 
void {\bfseries send\+B1\+Command} ()
\item 
\mbox{\Hypertarget{class_q_qt_server_protocol_a5b86b55121ea1ddda182cfac82ffa1f0}\label{class_q_qt_server_protocol_a5b86b55121ea1ddda182cfac82ffa1f0}} 
void {\bfseries send\+B10\+Command} ()
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual quint16 \mbox{\hyperlink{class_q_qt_server_protocol_aedf7e04e6c47c20e0e76f9e99a60a524}{minlength}} () override
\begin{DoxyCompactList}\small\item\em 最小包长 \end{DoxyCompactList}\item 
virtual quint16 \mbox{\hyperlink{class_q_qt_server_protocol_ac4822c4cab54e3c909683857f7e60e16}{maxlength}} () override
\begin{DoxyCompactList}\small\item\em 最大包长 \end{DoxyCompactList}\item 
virtual quint16 \mbox{\hyperlink{class_q_qt_server_protocol_ad32e1371ad050b5db9ce135b8fc5d96e}{splitter}} (const Q\+Byte\+Array \&l0) override
\begin{DoxyCompactList}\small\item\em 语法解析器 从流中解析报文长度 /.../quint16 size/.../.../... \end{DoxyCompactList}\item 
virtual bool \mbox{\hyperlink{class_q_qt_server_protocol_a5649fe79c03f11076a4c3014c8013c25}{dispatcher}} (const Q\+Byte\+Array \&l0) override
\begin{DoxyCompactList}\small\item\em 语义解析器 分发报文 /.../quint16 size/.../\+Q\+Byte\+Array data/.../ \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
The \mbox{\hyperlink{class_q_qt_server_protocol}{Q\+Qt\+Server\+Protocol}} class 这是我定义的服务器和客户端的协议 在这里我实现服务器要干的事情。 具体的：这是我按照服务器和客户端的通信协议，实现的服务器端通信功能。 

\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_q_qt_server_protocol_a5649fe79c03f11076a4c3014c8013c25}\label{class_q_qt_server_protocol_a5649fe79c03f11076a4c3014c8013c25}} 
\index{Q\+Qt\+Server\+Protocol@{Q\+Qt\+Server\+Protocol}!dispatcher@{dispatcher}}
\index{dispatcher@{dispatcher}!Q\+Qt\+Server\+Protocol@{Q\+Qt\+Server\+Protocol}}
\subsubsection{\texorpdfstring{dispatcher()}{dispatcher()}}
{\footnotesize\ttfamily virtual bool Q\+Qt\+Server\+Protocol\+::dispatcher (\begin{DoxyParamCaption}\item[{const Q\+Byte\+Array \&}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [protected]}, {\ttfamily [virtual]}}



语义解析器 分发报文 /.../quint16 size/.../\+Q\+Byte\+Array data/.../ 


\begin{DoxyParams}{Parameters}
{\em 数据包} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 no dispatched(others) 1 dispatched(own) 
\end{DoxyReturn}


Reimplemented from \mbox{\hyperlink{class_q_qt_protocol_a35a69c4b89c8cf7459038f40d75e0dc9}{Q\+Qt\+Protocol}}.

\mbox{\Hypertarget{class_q_qt_server_protocol_ac4822c4cab54e3c909683857f7e60e16}\label{class_q_qt_server_protocol_ac4822c4cab54e3c909683857f7e60e16}} 
\index{Q\+Qt\+Server\+Protocol@{Q\+Qt\+Server\+Protocol}!maxlength@{maxlength}}
\index{maxlength@{maxlength}!Q\+Qt\+Server\+Protocol@{Q\+Qt\+Server\+Protocol}}
\subsubsection{\texorpdfstring{maxlength()}{maxlength()}}
{\footnotesize\ttfamily virtual quint16 Q\+Qt\+Server\+Protocol\+::maxlength (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [protected]}, {\ttfamily [virtual]}}



最大包长 

\begin{DoxyReturn}{Returns}

\end{DoxyReturn}


Reimplemented from \mbox{\hyperlink{class_q_qt_protocol_af41bc3116abbbcfc9af45e151a253ff7}{Q\+Qt\+Protocol}}.

\mbox{\Hypertarget{class_q_qt_server_protocol_aedf7e04e6c47c20e0e76f9e99a60a524}\label{class_q_qt_server_protocol_aedf7e04e6c47c20e0e76f9e99a60a524}} 
\index{Q\+Qt\+Server\+Protocol@{Q\+Qt\+Server\+Protocol}!minlength@{minlength}}
\index{minlength@{minlength}!Q\+Qt\+Server\+Protocol@{Q\+Qt\+Server\+Protocol}}
\subsubsection{\texorpdfstring{minlength()}{minlength()}}
{\footnotesize\ttfamily virtual quint16 Q\+Qt\+Server\+Protocol\+::minlength (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [protected]}, {\ttfamily [virtual]}}



最小包长 

\begin{DoxyReturn}{Returns}

\end{DoxyReturn}


Reimplemented from \mbox{\hyperlink{class_q_qt_protocol_a2b00f53d3dd0eed817eeecff422891f3}{Q\+Qt\+Protocol}}.

\mbox{\Hypertarget{class_q_qt_server_protocol_ad32e1371ad050b5db9ce135b8fc5d96e}\label{class_q_qt_server_protocol_ad32e1371ad050b5db9ce135b8fc5d96e}} 
\index{Q\+Qt\+Server\+Protocol@{Q\+Qt\+Server\+Protocol}!splitter@{splitter}}
\index{splitter@{splitter}!Q\+Qt\+Server\+Protocol@{Q\+Qt\+Server\+Protocol}}
\subsubsection{\texorpdfstring{splitter()}{splitter()}}
{\footnotesize\ttfamily virtual quint16 Q\+Qt\+Server\+Protocol\+::splitter (\begin{DoxyParamCaption}\item[{const Q\+Byte\+Array \&}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [protected]}, {\ttfamily [virtual]}}



语法解析器 从流中解析报文长度 /.../quint16 size/.../.../... 


\begin{DoxyParams}{Parameters}
{\em 接收到的数据段} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
按照协议解析到的数据长度 可用，继续接收，丢弃，粘包。 
\end{DoxyReturn}


Reimplemented from \mbox{\hyperlink{class_q_qt_protocol_a00fd0c1ac23379ed3b9b25da9a34f39b}{Q\+Qt\+Protocol}}.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/examples/qqtserverexample/qqtserverprotocolmanager.\+h\end{DoxyCompactItemize}
